import request from '@/utils/request'

// 查询年级选项列表
export function listGradeOption(query) {
  return request({
    url: '/system/gradeOption/list',
    method: 'get',
    params: query
  })
}

// 查询年级选项详细
export function getGradeOption(id) {
  return request({
    url: '/system/gradeOption/' + id,
    method: 'get'
  })
}

// 新增年级选项
export function addGradeOption(data) {
  return request({
    url: '/system/gradeOption',
    method: 'post',
    data: data
  })
}

// 修改年级选项
export function updateGradeOption(data) {
  return request({
    url: '/system/gradeOption',
    method: 'put',
    data: data
  })
}

// 删除年级选项
export function delGradeOption(id) {
  return request({
    url: '/system/gradeOption/' + id,
    method: 'delete'
  })
}